package com.ylx.mapper;

import com.ylx.pojo.Goods;
import com.ylx.pojo.Order;
import com.ylx.pojo.OrderItem;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface OrderMapper {



    int add (Order order);

    void addOrderItem (OrderItem or);

    void update (Order order);

    Order selectByOid (String oid);

    void updateOrderState (String oid);

    Order getOrderByOid (String oid);

    List<Order> getOrderByUid (@Param("uid") String uid,@Param("birthYear") String birthYear,@Param("birthMonth") String birthMonth);


    List<OrderItem> selectOrderItemOid (String oid);

    List<OrderItem> selectOrderItemOid1 ();

    Goods getProductsById (String id);

    List<OrderItem> selectOrderItem (String oid);

    List<Order> getAllOrderList ();



    int deleteOrder (String oid);

    int deleteOrderItem (String oid);

    int AddZp (Order order);

    List<Goods> getMenu();

    List<Goods> getLisiMenu();

   List<OrderItem> selectOrderitem();

   List<Order> selectUser(String NAME);

}
